package com.ashbur.rookie.api.controller.admin;

import com.ashbur.rookie.common.grace.result.GraceJSONResult;
import com.ashbur.rookie.pojo.bo.SaveFriendLinkBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

@Api(value = "首页友情链接维护", tags = {"首页友情链接维护controller"})
@RequestMapping("friendLinkMng")
public interface FriendLinkMngControllerApi {
    @ApiOperation(value = "新增或者修改友情链接", notes = "新增或者修改友情链接", httpMethod = "POST")
    @PostMapping("/saveOrUpdateFriendLink")
    public GraceJSONResult saveOrUpdateFriendLink(
            @RequestBody @Valid SaveFriendLinkBO saveFriendLinkBO);

    @PostMapping("getFriendLinkList")
    @ApiOperation(value = "查询友情链接列表", notes = "查询友情链接列表", httpMethod = "POST")
    public GraceJSONResult getFriendLinkList();

    @PostMapping("delete")
    @ApiOperation(value = "删除友情链接", notes = "删除友情链接", httpMethod = "POST")
    public GraceJSONResult deleteFriendLink(@RequestParam String linkId);

    @GetMapping("portal/list")
    @ApiOperation(value = "首页查询友情链接列表", notes = "首页查询友情链接列表", httpMethod = "GET")
    public GraceJSONResult getPortalFriendLinkList();



}
